<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<jsp:useBean id="MESSAGE" class="java.lang.String" scope="request"/>
<title>Bookstore</title>
<script>
	

	function Search(){
	document.frm.action="/bookstore/itemsearch.do";
	document.frm.submit();
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/bookstore/default.css" />
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (all.psd) -->
<table id="Table_01" width="718"  border="0" cellpadding="0" cellspacing="0" align=center>
	<tr>
		<td colspan="3">
		<img src="/bookstore/images/all_01.jpg" width="718" height="167" alt="">	
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div id="menu" align=center>	
				<jsp:include page="customermenu.jsp"/>
		  </div>	
		</td>
	</tr>
	<tr>
		<td colspan="3">
		<div id="content">	
		
<form method="post" name=frm action="/bookstore/itemsearch.do">

 <input type="hidden" id="imageId"  name="imageId" value="" />
 
 <input type="hidden" name="call" value="upload" />
  <input type="hidden" name="orderby" value="year" />
  <input type="hidden" name="isbn" value="" />

  <input type="hidden" name="year" value="" />
   <input type="hidden" name="author" value="" />
    <input type="hidden" name="name" value="" />
	 <input type="hidden" name="publisher" value="" />




<p class="pheading1">Browse Books</p>
<bean:write name='MESSAGE'/> 

<table cellpadding="0" class=contentable cellspacing="10">



<tr>
       <td>Select Category</td>
       <td><select name="categoryid">
	
<logic:iterate id="categ" name="categorylist">
<option value="<bean:write name="categ" property="categoryid"/>">
<bean:write name="categ" property="categoryname"/>
</option>
</logic:iterate>


	   </select></td>
</tr>

<tr>
       <td>&nbsp;</td>
       <td><input type="button" class=btn onClick="Search()" value="BrowseCategory" /></td>
</tr>

</table>


</form>
		</div>
		</td>
	</tr>
	<tr><td colspan="3"><div id=footer><img src="/bookstore/images/all_06.jpg" width="718" height="17" alt="">
			</div></td></tr>
	
	
</table>
<!-- End ImageReady Slices -->

</body>
</html>